<div class="main patrol">
  <div class="main-header">
    <div class="pa-icon-div pull-left fs-14">
      <i class="iconfont icon-shouye fs-14 icon-vertical-top"></i>
      <span class="fs-vertical-middle">巡查管理>
      <span class="fs-theme-color">未闭合问题</span>
      </span>
    </div>
  </div>
  <bid-tabs ng-model="vm.selectBid"></bid-tabs>
  <div class="main-content">
    <div class="search-info">
      <div class="container-header fs-16">
        <span>巡查内容</span>
      </div>
      <form class="base-info" name="queryForm">
        <div class="base-info-item">
          <div class="pa-form-control">
            <label>巡查人：</label>
            <input type="text" class="pa-form-control-input"
              ng-model="vm.mapParams.patrolUserName">
          </div>
          <div class="pa-form-control">
            <label>类型：</label>
            <select class="pa-form-control-select"
              ng-model="vm.mapParams.checkOrgType">
              <option value="">请选择</option>
              <option value="1">指挥部检查</option>
              <option value="2">监理检查</option>
              <option value="3">项目部自查</option>
            </select>
          </div>
          <!-- <div class="pa-form-control">
            <label>是否规范：</label>
            <select class="pa-form-control-select"
              ng-model="vm.mapParams.checkResult">
              <option value="">请选择</option>
              <option value="1">是</option>
              <option value="2">否</option>
            </select>
          </div> -->
          <div class="pa-form-control">
            <label>巡查时间：</label>
            <input type="text" class="pa-form-control-input date-picker"
              name="patrolTimeStart"
              data-ng-datepicker
              ng-model="vm.mapParams.patrolTimeStart">
            <label class="pa-form-zhi">至</label>
            <input type="text" class="pa-form-control-input date-picker"
              name="patrolTimeEnd"
              data-ng-datepicker
              ng-model="vm.mapParams.patrolTimeEnd">
          </div>
          <div class="pa-form-control pa-form-control-btn text-right w-100">
            <button class="pa-btn pa-sw-btn" type="button"
              ng-click="vm.$query(queryForm)">搜索</button>
            <button class="pa-btn pa-sw-btn reset-btn" type="reset"
              ng-click="vm.$reset()">重置</button>
          </div>
        </div>
      </form>
    </div>
    <pa-table>
      <table class="pa-table">
        <thead>
          <tr>
            <th class="sorting"
              ng-class="{'sorting-desc': vm.mapParams.sortType == 2, 'sorting-asc': vm.mapParams.sortType == 1}"
              ng-click="vm.$toggleOrder('created_time')">
              时间
            </th>
            <th>类型</th>
            <th>巡查人</th>
            <th>检查项</th>
            <!-- <th>是否规范</th> -->
            <th>整改期限</th>
            <th>处理状态</th>
            <th class="operate-three">操作</th>
          </tr>
        </thead>
        <tbody>
          <tr ng-repeat="item in vm.patrolListData">
            <td>{{item.createdTime | date:"yyyy-MM-dd HH:mm"}}</td>
            <td>{{item.checkOrgType == 3 ? '项目部自查' : item.checkOrgType == 2 ? '监理检查' : item.checkOrgType == 1 ? '指挥部检查' : '-'}}</td>
            <td>{{item.creatorName}}</td>
            <td>{{item.checkClassifyName}}</td>
            <!-- <td>{{item.checkResult == 1 ? '是' : item.checkResult == 2 ? '否' : '-'}}</td> -->
            <td>{{item.rectifyDate | date:"yyyy-MM-dd"}}</td>
            <td>{{item.recordStatus == 1 ? '待整改' :
              item.recordStatus == 2 ? '待审核' :
              item.recordStatus == 3 ? '已完成' : '-'}}</td>
            <td>
              <div class="operate-del" ui-sref="patrolDetail({id: item.id})"
                ng-show="!item.recordStatus">
                <i class="iconfont icon-jilu3 detail-color fs-12"></i>
                <span>详情</span>
              </div>
              <div class="operate-del" ui-sref="patrolDetail({id: item.id})"
                ng-show="item.recordStatus">
                <i class="iconfont icon-jilu3 detail-color fs-12"></i>
                <span>详情</span>
              </div>
              <div class="operate-del" ng-click="vm.$delete(item.id)">
                <i class="iconfont icon-shanchu trash-color fs-12"></i>
                <span>删除</span>
              </div>
            </td>
          </tr>
        </tbody>
      </table>
    </pa-table>
  </div>
</div>
